From 33945fbbe41c241adeb447e2e1b7033b68dde54e Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 1 Jul 2006 19:40:02 +0000 Subject: [PATCH] Commit remaining piece of 'name magellan tracks after filename' change. --- magproto.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/magproto.c b/magproto.c index 1c5e6a317..3cfdb0574 100644 --- a/magproto.c +++ b/magproto.c @@ -825,6 +825,17 @@ mag_rd_init_common(const char *portname) QUEUE_INIT(&rte_wpt_tmp); + /* find the location of the tail of the path name, + * make a copy of it, then lop off the file extension + */ + + curfname = strrchr(portname, '/'); + if (curfname) { + curfname++; /* skip over path delimiter */ + } + + + return; } -- 2.30.2